import request from "@/utils/request";
import {ColumnAppendVO} from "@/api/columnAppend/types";

/**
 * 保存合并列配置
 *
 * @param data
 */
export function saveColumnAppend(data: ColumnAppendVO) {
	return request({
		url: "/api/v1/columnAppend",
		method: "post",
		data: data,
	});
}

/**
 * 获取合并列配置列表
 *
 * @param queryParams
 */
export function getColumnAppendList(platformKey: string) {
	return request({
		url: '/api/v1/columnAppend/' + platformKey + '/form',
		method: 'get'
	});
}

/**
 * 删除合并列配置
 *
 * @param ids
 */
export function deleteColumnAppend(ids: number) {
	return request({
		url: '/api/v1/columnAppend/' + ids,
		method: 'delete'
	});
}

